using System.Collections.Generic;

public class SectorStack<T>
{
	private List<T> items = new List<T>();

	public int Count
	{
		get
		{
			return items.Count;
		}
	}

	public void Push(T item)
	{
		items.Add(item);
	}

	public T Pop()
	{
		if (items.Count > 0)
		{
			T result = items[items.Count - 1];
			items.RemoveAt(items.Count - 1);
			return result;
		}
		return default(T);
	}

	public void Remove(T item)
	{
		items.Remove(item);
	}
}
